#ifndef TASK_H
#define TASK_H
#include "entry.h"
#include <sstream>
class Task :
	public Entry
{
	static const string MSG_OUTPUT;
	bool _statusCompleted;

	/*//inherited attributes
	string _name;
	string _command;
	QDate _endDate;
	QTime _endTime;
	static const QDate EMPTY_DATE;
	static const QTime EMPTY_TIME;
	static const string EMPTY_STRING;
	friend class EntryManager;
	*/
public:
	static const int NUM_ATTRIBUTES=4;
	static const string TYPE_ENTRY;
	Task(void);
	Task(const Entry*);
	Task(string, QDate, QTime, bool);
	~Task(void);
	string toString();
//	void setName(string);
	static Task fromString(string);
	bool operator==(Entry*);
	bool setDone();
	bool getStatus() const;
	string getStatusString() const;
	string getEntryType() const;
	string getSearchString() const ;
	int getAttributeCount() const;
	enum STATUS_TYPE_TASK{
		DONE, NOT_DONE, OVERDUE
	};
	string sendStatusTask( const STATUS_TYPE_TASK status) const;
	string setNotDoneOrOverdue () const;
	bool NotDoneOrOverdue () const;
};

#endif